/**
 * 
 */
package com.suneee.logistic.entity;

import java.io.Serializable;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.GenerationType;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;

/**
 * @author liuxh 物流公司企业管理属性类
 */

@Entity
@Table(name = "t_enterprise_logistic")
public class EnterpriseLogistics implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6616181465999036453L;

	/**
	 * 配置id(主键)
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "logistic_id", nullable = false)
	private int logisticId;

	/**
	 * 企业编码
	 */
	@Column(name = "enterprise_code", nullable = false)
	private String enterpriseCode;

	/**
	 * 物流id
	 */
	@Column(name = "company_code", nullable = false)
	private String companyCode;

	/**
	 * 物流名称
	 */
	@Column(name = "company_name", nullable = false)
	private String companyName;

	/**
	 * 是否默认
	 */
	@Column(name = "is_default", nullable = false)
	private boolean defaults;

	/**
	 * 排序
	 */
	@Column(name = "order_num", nullable = false)
	private int orderNum;

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	public int getLogisticId() {
		return logisticId;
	}

	public void setLogisticId(int logisticId) {
		this.logisticId = logisticId;
	}

	public String getEnterpriseCode() {
		return enterpriseCode;
	}

	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}

	
	public boolean isDefaults() {
		return defaults;
	}

	public void setDefaults(boolean defaults) {
		this.defaults = defaults;
	}

	public int getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

}
